#include "switchkeydialog.h"
#include "ui_switchkeydialog.h"

SwitchKeyDialog::SwitchKeyDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SwitchKeyDialog)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);//设置无标题栏与边框
    this->setAttribute(Qt::WA_DeleteOnClose);//设置调用close函数时销毁界面
}

SwitchKeyDialog::~SwitchKeyDialog()
{
    delete ui;
}

void SwitchKeyDialog::on_open_key_clicked()
{
    emit openKey_sig();
}


void SwitchKeyDialog::on_forbid_key_clicked()
{
    emit forbidKey_sig();
}

